package day04;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/11
 */
public class OneArrayMax {
    public static void main(String[] args) {
        int[] arr = new int[5];
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入5个整数");

        for (int i = 0; i < 5; i++) {
             arr[i] = sc.nextInt();
        }

        Arrays.sort(arr);
        System.out.println("数组最大值为：" + arr[arr.length - 1]);
    }
}
